package cn.gogpay.dcb.api.feign;

import cn.gogpay.dcb.api.feign.impl.IcbcWalletClientImpl;
import cn.gogpay.dcb.common.dto.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 工行钱包服务 client
 *
 * @author jiaoming@gogpay.cn
 * @date 2019/11/22 21:34
 * ,url = "192.168.2.133:8323"
 */
@Primary
@FeignClient(name = "icbc-wallet", fallback = IcbcWalletClientImpl.class)
public interface IcbcWalletClient {


    /**
     * @param userId
     * @return
     */
    @ResponseBody
    @PostMapping("/icbcWallet/outApi/isOpenAccountV2")
    ResultDTO isOpenAccount(@RequestParam(value = "userId") String userId);


}

